package com.yztc.orangeentertainment.ui.main.findfragment.findui;

import android.content.Context;

import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.findbean.FindChangeBean;
import com.yztc.orangeentertainment.bean.findbean.FindChangeDataBean;
import com.yztc.orangeentertainment.bean.findbean.FindHotBean;
import com.yztc.orangeentertainment.bean.findbean.FindHotDataListBean;
import com.yztc.orangeentertainment.bean.findbean.FindMoreBean;
import com.yztc.orangeentertainment.bean.findbean.FindMoreDataBean;

import java.util.List;
import java.util.Map;

import rx.Subscriber;

/**
 * Created by My on 2016/10/13.
 */
public class FindContract {
    public interface View extends IView {
        public void getFindMoreDataBeanSucess(FindMoreDataBean findMoreDataBean);

        public void getFindMoreDataBeanFail(String msg);
    }

    public interface FindChangeView extends IView {
        public void getFindChangeDataBeanSucess(List<FindChangeDataBean> changeDataBeens);

        public void getFindChangeDataBeanFail(String msg);
    }

    public interface FindHotView extends IView {
        public void getFindHotDataListBeanSucess(List<FindHotDataListBean> hotDataListBeens);

        public void getFindHotDataListBeanFail(String msg);
    }

    public interface Modle extends IModle {
        public void getFindMoreDataBean(String url, Context context, Subscriber<FindMoreBean>
                subscriber);

        public void getFindChangeBean(String type, Map<String, String> params,
                                      Subscriber<FindChangeBean>
                                              subscriber);

        public void getFindHotDataListBean(String type, Map<String, String> params,
                                           Subscriber<FindHotBean> subscriber);
    }

    public interface Presenter extends IPresenter {
        public void getFindMoreDataBeanFromNet(String url, Context context);

        public void getFindChangeBeanFromNet(int page);

        public void getFindHotDataListBeanFromNet();
    }
}
